package cn.ccit.servers;

import java.util.List;

import cn.ccit.DAO.TerminalDAO;
import cn.ccit.DAOImp.TerminalDAOimp;
import cn.ccit.entites.Terminal;
import cn.ccit.entites.User;
import cn.ccit.iservers.ITerminalServers;
/**
 * 
 * ClassName: TerminalServers <br/> 
 * Function: 门店终端服务类. <br/> 
 * Reason: TODO ADD REASON(可选). <br/> 
 * date: 2016年11月5日 下午3:22:06 <br/> 
 * 
 * @author Administrator 
 * @version  
 * @since JDK 1.6
 */
public class TerminalServers implements ITerminalServers {
	private TerminalDAO terminalDao= null; 
	public TerminalServers() {
		terminalDao= new TerminalDAOimp(); 
	}
	@Override
	public boolean addTerminal(Terminal term) {
		return terminalDao.addTerminal(term);
	}
	@Override
	public boolean removeTerminal(Terminal term) {
		return terminalDao.removeTerminal(term);
	}
	@Override
	public boolean changeTerminalInfo(Terminal term) {
		return terminalDao.changeTerminalInfo(term);
	}
	@Override
	public List<Terminal> getSomeTerminals(int start, int limit) {
		return terminalDao.getSomeTerminals(start, limit);
	}
	@Override
	public Terminal searchTerminalByID(int id) {
		return terminalDao.searchTerminalByID(id);
	}
	@Override
	public List<Terminal> searchTerminalByName(String name) {
		return terminalDao.searchTerminalByName(name);
	}
	@Override
	public List<Terminal> searchTerminalByHostName(String hostName) {
		return terminalDao.searchTerminalByHostName(hostName);
	}
	@Override
	public Terminal searchTerminalByPhone(String phone) {
		return terminalDao.searchTerminalByPhone(phone);
	}
	
	

}
